package com.itheima.day05_method;

public class Demo5_zhichuandi {
    public static void main(String[] args) {
//        int a = 10;
//        change(a);
//        System.out.println("a = " + a);

        int[] arrs = {1, 2, 3, 4};
        change(arrs);
        System.out.println("arrs[1] = " + arrs[1]);
    }

    public static void change(int a){
        System.out.println("a = " + a);
        a = 20;
        System.out.println("a = " + a);
    }

    public static void change(int[] arrs){
        System.out.println("arrs[1] = " + arrs[1]);
        arrs[1] = 222;
        System.out.println("arrs[1] = " + arrs[1]);
    }
}
